import React from 'react';
import { Checkbox } from 'antd';

const Required = ({ className = '', value, onChange }) => {
  return (
    <div className={className}>
      <Checkbox
        checked={value}
        onChange={(e) => { if (onChange) onChange(e.target.checked) }}
      >
        必填项
      </Checkbox>
    </div>
  );
}
export default Required;